---
title: lessThanOrEqual
description: Check whether the value of a Dinero object is lesser than or equal to another.
returns: boolean
---

Check whether the value of a Dinero object is lesser than or equal to another.

**You can only compare objects that share the same currency.** The function also normalizes objects to the same scale (the highest) before comparing them.

## Parameters

<Parameters>

<Parameter name="dineroObject" type="Dinero<TAmount>" required={true}>

The first Dinero object to compare.

</Parameter>

<Parameter name="comparator" type="Dinero<TAmount>" required={true}>

The second Dinero object to compare.

</Parameter>

</Parameters>

## Code examples

### Compare two objects

```js
import { dinero, lessThanOrEqual } from 'dinero.js';
import { USD } from '@dinero.js/currencies';

const d1 = dinero({ amount: 800, currency: USD });
const d2 = dinero({ amount: 500, currency: USD });

lessThanOrEqual(d1, d2); // false
```

### Compare two identical objects

```js
import { dinero, lessThanOrEqual } from 'dinero.js';
import { USD } from '@dinero.js/currencies';

const d1 = dinero({ amount: 500, currency: USD });
const d2 = dinero({ amount: 500, currency: USD });

lessThanOrEqual(d1, d2); // true
```

### Compare two objects after normalization

```js
import { dinero, lessThanOrEqual } from 'dinero.js';
import { USD } from '@dinero.js/currencies';

const d1 = dinero({ amount: 5000, currency: USD, scale: 3 });
const d2 = dinero({ amount: 800, currency: USD });

lessThanOrEqual(d1, d2); // true
```
